/******************************************************************************
 * 
 * File Name	: power.h
 *
 * Version		: V1.0
 *
 * Date		    : 
 *
 * Author		: 
 *
 * Note: 
 *
 *****************************************************************************/

#ifndef _POWER_H_
#define _POWER_H_

#include "gd32f10x.h"
#include "gd32f10x_gpio.h"

#define 	VPX_13247	0
#define 	VPX_13224	1
#define 	VPX_13225	2
#define 	VPX_13198	3
#define 	VPX_13218	4
#define 	VPX_13246	5

#define  	VPX_11001C   30


#define VPX_NUM		VPX_13224

#define LED1_PIN                            GPIO_PIN_13
#define LED1_GPIO_PORT                      GPIOC

#define LED0_PIN                           GPIO_PIN_10
#define LED0_GPIO_PORT                     GPIOA


#define K_ENA_PIN					GPIO_PIN_3
#define K_ENA_GPIO_PORT				GPIOB
#define K_INH_PIN					GPIO_PIN_4
#define K_INH_GPIO_PORT				GPIOB

#define	 LED_PWR_PIN				GPIO_PIN_3
#define    LED_PWR_GPIO_PORT			GPIOA

#define	 ON_OFF1_PIN				GPIO_PIN_12
#define    ON_OFF1_GPIO_PORT			GPIOB
#define	 ON_OFF2_PIN				GPIO_PIN_15
#define    ON_OFF2_GPIO_PORT			GPIOA
#define	 ON_OFF3_PIN				GPIO_PIN_13
#define    ON_OFF3_GPIO_PORT			GPIOB
#define	 ON_OFF5_PIN				GPIO_PIN_14
#define    ON_OFF5_GPIO_PORT			GPIOB
#define	 ON_OFF6_PIN				GPIO_PIN_15
#define    ON_OFF6_GPIO_PORT			GPIOB


int power_start(void);
#endif /* _POWER_H_ */
